package com.example.dao;

import com.example.entity.NxQuestionInfo;
import com.example.vo.NxQuestionInfoVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface NxQuestionInfoDao extends Mapper<NxQuestionInfo> {
    List<NxQuestionInfoVo> findByName(@Param("name") String name);

    @Select("select * from nx_question_info where questionType = #{questionType} and type = #{type}")
    List<NxQuestionInfoVo> findByQuestionType(@Param("questionType") String questionType, @Param("type") String type);
}
